package com.apimarket.enums;

/**
 * 类型错误异常枚举(目前包含插件类型的错误)
 *
 * @author yyc
 */
public enum InvalidTypeEnum {
    PLUGIN_ERROR("插件类型错误", 400),
    METHOD_PARAMETER_ERROR("方法参数错误", 400);


    private String message;

    private int code;

    InvalidTypeEnum(String message, int code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
